package com.lxp.design.shop.order.service;

import com.lxp.design.shop.order.service.impl.OrderFallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author LaiXiaoPeng
 * @version 1.0
 * @date 2022/2/11 14:52
 */
@Component
@FeignClient(name = "shop-order",fallback = OrderFallBackService.class)
public interface OrderService {
    @RequestMapping("/person/list")
    String getPersons();

    @GetMapping("/person/success")
    String success();

    @GetMapping("/person/timeOut")
    String timeOut();


    @GetMapping("/person/breaker")
    Long breaker(@RequestParam(name = "divide") Integer divide);
}
